package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipSpareInWarehouse;
import cc.comac.mom.bean.EquipSpareInWarehouseBean;
import cc.comac.mom.bean.ResultDev;
import cc.comac.mom.util.ResultBean;

@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipSpareInWarehouseService {
	
	@RequestMapping(value = "/p/cs/EquipSpareInWarehouseService/spareInwarehouse",method = RequestMethod.POST)
	public ResultBean spareInwarehouse(@RequestBody EquipSpareInWarehouseBean equipSpareInWarehouseBean);

	@RequestMapping(value = "/p/cs/EquipSpareInWarehouseService/selectBySomeField",method = RequestMethod.POST)
	public ResultBean selectBySomeField(@RequestBody EquipSpareInWarehouse equipSpareInWarehouse);
	
	@RequestMapping(value = "/p/cs/EquipSpareInWarehouseService/updateInWarehouseSpareQuantity",method = RequestMethod.POST)
	public ResultBean updateInWarehouseSpareQuantity(@RequestBody List<EquipSpareInWarehouse> list);
	
	@RequestMapping(value = "/p/cs/EquipSpareInWarehouseService/updateInWarehouseSpareData",method = RequestMethod.POST)
	public ResultBean updateInWarehouseSpareData (@RequestBody EquipSpareInWarehouseBean euipSpareInWarehouseBean);
	
	@RequestMapping(value = "/p/cs/EquipSpareInWarehouseService/batchDelete",method = RequestMethod.POST)
	public ResultBean batchDelete (@RequestBody List<EquipSpareInWarehouse> inWarehouseList) ;
}
